package client;

import java.awt.Font;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
import javax.swing.UIManager;

public class Screen_Menu extends JPanel {

	private JLabel lblMatmMenu;
	private JButton btnBalance;
	private JButton btnDeposit;
	private JButton btnSendBtc;
	private JButton btnLogOut;

	/**
	 * Create the panel.
	 */
	public Screen_Menu() {
		setBackground(UIManager.getColor("Label.background"));
		setLayout(null);
		setSize(320, 480);

		lblMatmMenu = new JLabel("MATM Menu");
		lblMatmMenu.setFont(new Font("Eurostile", Font.BOLD, 16));
		lblMatmMenu.setHorizontalAlignment(SwingConstants.CENTER);
		lblMatmMenu.setBounds(0, 35, 320, 50);
		add(lblMatmMenu);

		btnBalance = new JButton("View balance");
		btnBalance.setFont(new Font("Eurostile", Font.PLAIN, 13));
		btnBalance.setHorizontalAlignment(SwingConstants.CENTER);
		btnBalance.setBounds(60, 120, 200, 40);
		add(btnBalance);

		btnSendBtc = new JButton("Send Bitcoins");
		btnSendBtc.setFont(new Font("Eurostile", Font.PLAIN, 13));
		btnSendBtc.setHorizontalAlignment(SwingConstants.CENTER);
		btnSendBtc.setBounds(60, 165, 200, 40);
		add(btnSendBtc);

		btnDeposit = new JButton("Deposit Bitcoins");
		btnDeposit.setFont(new Font("Eurostile", Font.PLAIN, 13));
		btnDeposit.setHorizontalAlignment(SwingConstants.CENTER);
		btnDeposit.setBounds(60, 210, 200, 40);
		add(btnDeposit);

		btnLogOut = new JButton("Log out");
		btnLogOut.setFont(new Font("Eurostile", Font.BOLD, 14));
		btnLogOut.setHorizontalAlignment(SwingConstants.CENTER);
		btnLogOut.setBounds(60, 300, 200, 45);
		add(btnLogOut);
	}

	public JButton getBtnBalance() {
		return btnBalance;
	}

	public JButton getBtnSendBtc() {
		return btnSendBtc;
	}

	public JButton getBtnDeposit() {
		return btnDeposit;
	}

	public JButton getBtnLogOut() {
		return btnLogOut;
	}

	public void addActionListener(ActionListener l) {
		btnBalance.addActionListener(l);
		btnSendBtc.addActionListener(l);
		btnDeposit.addActionListener(l);
		btnLogOut.addActionListener(l);
	}
}